import request from "@/utils/request";

// 统计学生注册量
export function postStatisticsStudent(data) {
  return request({
    url: "/system/statistics/student",
    method: "post",
    data: data,
  });
}

// 统计学生课程浏览量
export function postStatisticsView(data) {
  return request({
    url: "/system/statistics/view",
    method: "post",
    data: data,
  });
}

// 统计学生做题量
export function postStatisticsAnswer(data) {
  return request({
    url: "/system/statistics/answer",
    method: "post",
    data: data,
  });
}

// 统计学生下载试题量
export function postStatisticsDownload(data) {
  return request({
    url: "/system/statistics/download",
    method: "post",
    data: data,
  });
}


// 添加假数据
export function postoptimize(data) {
  return request({
    url: "/system/statistics/optimize",
    method: "post",
    data: data,
  });
}


// 获取所有学校数据
export function postSchoolData(data) {
  return request({
    url: "/system/statistics/showDept",
    method: "post",
    data,
  });
}


//导出学校数据


export function exportSchool(data) {
  return request({
    url: "/system/statistics/exportDept",
    method: "post",
    data,
  });
}